package com.zisu.aradvertising.repository;


import com.zisu.aradvertising.pojo.Cooperation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DaoCooperation  extends JpaRepository<Cooperation,Integer> {
    //CRU合作
    Cooperation findByCoid(int coid);
    //根据apid返回
    List<Cooperation> findAllByApid(int apid);
    //删除合作
    void deleteByCoid(int coid);

}
